function [result] = getSubjectBright(input)
%   Weber-Fechner Law , the subjective brightness perceived
%by the human eye is acquired by nerve stimulation from light
%refected from the object shining on the retina.

%
% J. Shen, ``On the foundations of vision modeling: I. Weber's law and
% Weberized TV restoration,'' Phys. D, Nonlinear Phenom., vol. 175, no. 3,
% pp. 241251, Feb. 2003.
%为了快速应用，我们使用拟合曲线来代替原有的主观(result)和客观(object)之前的关系
input=double(input)./255;
k =max(input(:))*1.5;
weight_matrix=(input+1)./(input+k);
result=weight_matrix.*input;
result=uint8(result*255);
end

